<template>
	<div>
		<h1>{{msg}}</h1>
		<div>
			<button @click="doAction">HELLO</button>
		</div>
        <img src="@/assets/img/temp.jpg" style="height:300px;width:300px;" id="test_image">
	</div>
</template>
<script>
import POSTGET from "@/components/util/POSTGET.js";
import CryptoJS from 'cryptojs';
import MD5 from 'md5.js';
export default {
    name:"Test",
    data:()=>({
        msg:"ready",

    }),
    methods:{
        doAction(){
            var url="http://plat.basegps.com:8088/chesafeutil/dinfo/getByUserName.do";
            var time=new Date().getTime();
            var sign="15650062307"+time+'bdjg$wer23*135#';
            sign=new MD5().update(sign).digest('hex').toUpperCase();
            var data={userName:"15650062307",timestamp:time,sign:sign};
            POSTGET.POST(url,data,function(res){
                console.log(res)
            });
        }
    },
    mounted(){
        


    }

}
</script>
